import { NoSkinCellRenderer } from "../../common/item/NoSkinCellRenderer";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { ObjCreate } from "../../common/ObjCreate";
import { ImagesConst } from "../../../resource/ImagesConst";
import { CountryMoneyRankData } from "../data/CountryMoneyRankData";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
//class CountryMoneyRankCellRender
    
    export  class CountryMoneyRankCellRender extends NoSkinCellRenderer
    {
        constructor()
        {
            super();
            this.createChildren();
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            var loc1=GlobalStyle.textFormat1;
            loc1.align = flash.text.TextFormatAlign.CENTER;
            this._txtRank = ObjCreate.createGTextField("", 0, 7, 115, 20, this, loc1);
            this._txtName = ObjCreate.createGTextField("", 116, 7, 183, 20, this, loc1);
            this._txtValue = ObjCreate.createGTextField("", 274, 7, 140, 20, this, loc1);
            ObjCreate.createBg(1, 32, 416, 1, this, ImagesConst.SplitLine);
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            var loc1=arg1 as CountryMoneyRankData;
            this._txtRank.text = loc1.rank;
            this._txtName.text = loc1.name;
            this._txtValue.text = loc1.value;
            return;
        }

        /* internal */ /* var */_txtRank: GTextFiled;

        /* internal */ /* var */_txtName: GTextFiled;

        /* internal */ /* var */_txtValue: GTextFiled;
    }
